import 'package:flutter/material.dart';
import 'package:tiktokadult/assets_tool/images.dart';
import 'package:tiktokadult/hj_utils/screen.dart';
import 'package:tiktokadult/hj_utils/widget_utils.dart';
import 'package:tiktokadult/tools_base/appbar/base_app_bar.dart';

class BlogAddPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _BlogAddPageState();
  }
}

class _BlogAddPageState extends State<BlogAddPage> {


  void _submitEvent() {

  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Color(0xffE0598F),
      appBar: BaseAppBar(title: "原创博主申请"),
      body: Stack(
        fit: StackFit.expand,
        children: [
          SingleChildScrollView(
            child: Column(
              children: [
                Image.asset(
                  "blog_0_bg.webp".videoPath,
                  width: screen.screenWidth,
                  fit: BoxFit.fitWidth,
                ),
                Image.asset(
                  "blog_1_bg.webp".videoPath,
                  width: screen.screenWidth,
                  fit: BoxFit.fitWidth,
                ),
                20.sizeBoxH,
                Text(
                  "请通过以下方式添加官方审核账号:",
                  style: TextStyle(
                    fontSize: 16,
                    fontWeight: FontWeight.w600,
                    color: Colors.white,
                  ),
                ),
                4.sizeBoxH,
                Text(
                  "https://t.me/tiktokgguanfang",
                  style: TextStyle(
                    fontSize: 16,
                    fontWeight: FontWeight.w600,
                    color: Colors.white,
                  ),
                ),
                30.sizeBoxH,
                Image.asset("icon_tel.webp".videoPath, width: 60),
                8.sizeBoxH,
                Text(
                  "招募制片人",
                  style: TextStyle(
                    fontSize: 16,
                    fontWeight: FontWeight.w600,
                    color: Colors.white,
                  ),
                ),
                30.sizeBoxH,
                Container(
                  padding: EdgeInsets.symmetric(horizontal: 36),
                  child: Text(
                    "入驻说明\n"
                    "1、平台不会通过个人收取任何入驻保证金\n"
                    "2、请与官方群管理员或APP客服确认真实性\n"
                    "3、更多问题请添加官方管理员咨询\n",
                    style: TextStyle(
                      fontSize: 16,
                      fontWeight: FontWeight.w600,
                      color: Colors.white,
                      height: 24 / 16,
                    ),
                  ),
                ),
                138.sizeBoxH,
              ],
            ),
          ),
          Positioned(
            left: 36,
            right: 36,
            bottom: 24,
            child: GestureDetector(
              onTap: _submitEvent,
              child: Container(
                height: 44,
                alignment: Alignment.center,
                decoration: BoxDecoration(
                  color: Color(0xffFDB43D),
                  borderRadius: BorderRadius.circular(6),
                ),
                child: Text(
                  "立即申请",
                  style: TextStyle(
                    color: Color(0xff7B0000),
                    fontSize: 16,
                  ),
                ),
              ),
            ),
          ),
        ],
      ),
    );
  }
}
